import request from '@/utils/request'
/**
 * 角色设置
 * @see {@link http://ps.jibachuan.com/platform/swagger-ui.html#!/role-controller}
 */
const roleMod = '/role'

/**
 * [query 查询角色]
 * 
 */
export function getRoleList(data) {
    return request({
        url: `${roleMod}/query`,
        method: 'post',
        data
    })
}

/**
 * [add 创建角色]
 */
export function addRole(data) {
    return request({
        url: `${roleMod}/add`,
        method: 'post',
        data
    })
}

/**
 * [delete 删除角色]
 */
export function deleteRole(data) {
    return request({
        url: `${roleMod}/delete`,
        method: 'post',
        data
    })
}

/**
 * [update 修改角色]
 */
export function updateRole(data) {
    return request({
        url: `${roleMod}/update`,
        method: 'post',
        data
    })
}